package com.peihua.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 搜索推荐词条实体（用于搜索推荐区域，不同于搜索框下方其它标签实体）
 */
@Data
@TableName("search_recommendations")
public class SearchRecommend implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("rec_name")
    private String recName;

    @TableField("sort")
    private Integer sort;

    @TableField("created_at")
    private LocalDateTime createdAt;
}